<?php
$this->placeholder("navegacion")->set($this->navegacion($this->nav));
$appConfig = Zend_Registry::get("appConfig");
$domConfig = Zend_Registry::get("domConfig");
if(count($this->datos)>0):
?>
<form action="<?=$this->baseUrl("/solicitudes/detalle/asignarseleccion");?>" method="post">
<table id="table_id" align="center" class="display">
  <thead>
    <tr>
      <th width="10%">Código SNIES</th>
      <th width="20%">Sede / CUNAD</th>
      <th width="35%">Nombre</th>
      <th width="20%">Metodología - Nivel</th>
      <th width="10%">Vencimiento</th>
      <th width="5%"></th>
    </tr>
  </thead>
  <tbody>
	<?php foreach ($this->datos as $value):?>
    <tr>
      <td style="text-align:center;"><?php echo $value["codsnies"]?></td>
      <td><?php echo $value["nombresede"]?></td>
      <td><?php echo $value["nombreprograma"]."<br>".$value["ubicacion"]?></td>
	  <td><?php echo $value["nombremetodologia"]."<br>".$value["nombrenivel"]?></td>
	  <td><?php echo $value["fechavencimientorc"];?></td>
      <td style="text-align:center;"><input type="checkbox" name="seleccionados[]" value="<?=$value["codprograma"];?>" /></td>
    </tr>
  <?php  endforeach;?>
  </tbody>
</table>
<div align="right"><input type="submit" value="Crear proceso de autoevalución" class="btn btn-primary btn-sm"  /></div>
</form>
<script type="text/javascript">
$(function() {
	var oTable = $('#table_id').dataTable({
		"bJQueryUI": true,
		"bAutoWidth": false,
		"oLanguage": { "sUrl": baseUrl + "/widget/dataTable/lang.es.txt" },
 		"sPaginationType": "full_numbers",
 		"bStateSave": true,
 		"aoColumns": [	null,
 	 		 			null,
 	 		 			null,
 	 		 			null,
 	 		 			null,
 	 		 			{ "bSortable": false, "bSearchable": false }
 	 		 		 ]
 	 		  		
	});
	
	oTable.fnSetFilteringDelay();

});
</script>
<?php else:?>
<br/>
<?php echo $this->mensajes("No existen registros");?>
<?php endif;?>
